function getState(value) {
    return value == 0?'在线':'注销';
}

function operate(){
    var edit = "<button class='edit btn btn-turquoise' title='修改'><i class='fa-edit'></i></button>";
    var del = "<button class='del btn btn-red' title='删除'><i class='fa-trash '></i></button>";
    return edit+"&nbsp;&nbsp;"+del;
}
$(function () {
    //initProSeriesAdd();
})
function proSeriesAdd() {
    $("#proSeriesAdd").find("form")[0].reset();
    $("#proSeriesAdd").dialog("open");
}

function initProSeriesAdd() {
    $("#proSeriesAdd").dialog({
        title:'添加角色',
        btnValue:'添加',
        btnBind:function () {
            var param = $("#proSeriesAdd").find("form").serialize();
            $.post("",param,function (msg) {
                toastr.warning(msg);
                $("#proSeriesTab").bootstrapTable("refresh");
                $("#proSeriesAdd").dialog("close");
            },'text');
        }
    })
}
